package com.coffee.sku.service.inquire.dao;

import com.coffee.sku.api.inquire.query.InquireSkuTestingMessageQuery;
import com.coffee.sku.service.inquire.bean.InquireSkuTestingMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InquireSkuTestingMessageDao {
    public InquireSkuTestingMessage findById(Integer id);

    public InquireSkuTestingMessage findByIdForUpdate(Integer id);

    public List<InquireSkuTestingMessage> findByIds(@Param("idList") List<Integer> idList);

    public Integer count(@Param("param") InquireSkuTestingMessageQuery param);

    public List<InquireSkuTestingMessage> page(@Param("param") InquireSkuTestingMessageQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

    public List<InquireSkuTestingMessage> list(@Param("param") InquireSkuTestingMessageQuery param);

    public InquireSkuTestingMessage findFirst(@Param("param") InquireSkuTestingMessageQuery param);

    public Integer insert(InquireSkuTestingMessage param);

    Integer insertBatch(List<InquireSkuTestingMessage> list);

    public void updateById(@Param("param") InquireSkuTestingMessage param);

    public Integer deleteById(Integer id);

    public Integer deleteByInquireSkuIdId(Integer inquireSkuId);

    public Integer deleteByIds(List<Integer> idList);

    public List<Integer> findIdsBySkuId(Integer inquireSkuId);

}